Fixed problems with combination of height-for-width apis and
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 22 Oct 2010 15:04:46 +0000 (00:04 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Fri, 22 Oct 2010 15:11:37 +0000 (00:11 +0900)
commitd26ac6421b7163bccbd635ee0b1b7745263a3f9d
treed2997a7808cfc00edb76fb5188a295badceb08ff
parenta46dec176e94cbea226203fc1d7e11e58817cfa6
Fixed problems with combination of height-for-width apis and
alignment/margin vfuncs adjust_size_request/allocation

Now get_height_for_width() will internally update the for_width
before passing it to the real height_for_width() vfunc, allowing
margins and extra space for alignments to be stripped, thus requesting
sufficient height for greater than natural widths (and also accounting
for margins properly). Test case adjusted in testadjustsize to ensure
proper behavior.
gtk/gtkcontainer.c
gtk/gtksizerequest.c
gtk/gtkwidget.c
gtk/gtkwidget.h
tests/testadjustsize.c